<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>实验2_2计科2411张心雨0306241131</title>
		<style>
			div{
				color: cyan;
				font-size: 50px;
			}
			.d1{
				color: blue;
			}
			.d2{
				color: pink;
			}
			#d3{
				color: green;
			}
			[ab]{
				color: red;
			}/*[ab]:选择包含ab属性的元素
				[ab="d4"]:选择ab属性值完全等于d4的元素*/
		</style>
	</head>
	<body>
		<div>1</div>
			<div class="d1">1</div>
			<div class="d1 d2">2</div>
			<div id="d3">3</div>
			<div ab="d4">4</div>
	</body>
</html>
